//
//  FeatureTableViewController.h
//  IceBreaker
//
//  Created by 老焦 on 12-10-16.
//  Copyright (c) 2012年 NDS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "EGORefreshHeaderView.h"
#import "AsyncSocket.h"

@interface FeatureTableViewController : UITableViewController<UIApplicationDelegate, EGORefreshHeaderDelegate> {
    EGORefreshHeaderView *headerView;
    BOOL loading;
}

@property(nonatomic, retain) AsyncSocket *mySocket;
@property(nonatomic, retain) NSString *serverIP;
@property(nonatomic, assign) UInt16 connectPort;
@property(nonatomic, assign) NSTimeInterval connectTime;
@property(nonatomic, retain) CLLocation *nowLocation;

// set the parent view controller for current controller
-(void) setParentViewController:(UIViewController *) viewController;
// Create socket connection
-(int) createConnection: (NSString *)hostIP
                   port: (UInt16)hostPort
                timeout: (NSTimeInterval) timeout;
// reconnect
-(IBAction)reConnect:(NSString *) hostIP
                port:(UInt16)hostPort
             timeout:(NSTimeInterval)timeout;
/* send data
-(IBAction) sendData:(NSData *)dataToSend
             timeout:(NSTimeInterval)timeout;
*/

@end
